package model;

public class ClassRoom {
    private int id;
    private String name;
    private String description;
    
    public ClassRoom(int id, String name, String description) {
        this.id = id;
        this.name = name;
        this.description = description;
    }
    
    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    
    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
    
    // 重写toString方法，使ComboBox显示班级名称
    @Override
    public String toString() {
        return name;
    }
} 